Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check procedure argument for NULL in RollbackToSnapshotProcedure #15503

Merged

Conversation

krvikash
Copy link
Contributor

@krvikash krvikash commented Dec 22, 2022

Description

Fixes #15399

Check procedure argument for NULL in RollbackToSnapshotProcedure to prevent NPE

Release notes

(X) This is not user-visible or docs only and no release notes are required.
( ) Release notes are required, please propose a release note for me.
( ) Release notes are required, with the following suggested text:

@findinpath
Copy link
Contributor

Could you pls add also a test in io.trino.tests.product.iceberg.TestIcebergProcedureCalls#testRollbackToSnapshot for the fix you just submitted?

@krvikash krvikash force-pushed the fix-npe-in-rollbackToSnapshot-procedure branch from 44dcd01 to 6ddaa5d Compare December 22, 2022 10:05
Copy link
Member

@ebyhr ebyhr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(X) Release notes are required, with the following suggested text:

There's no need to mention in release notes in my opinion. It's just for improving the error message.

@krvikash krvikash self-assigned this Dec 22, 2022
@krvikash krvikash added the no-release-notes This pull request does not require release notes entry label Dec 22, 2022
@ebyhr
Copy link
Member

ebyhr commented Dec 22, 2022

@krvikash Could you confirm other procedures as well? Follow-up PR is fine. Iceberg and Delta Lake connectors look fine at glance. Perhaps, Hive connector needs fix.

@krvikash
Copy link
Contributor Author

krvikash commented Dec 22, 2022

@krvikash Could you confirm other procedures as well? Follow-up PR is fine. Iceberg and Delta Lake connectors look fine at glance. Perhaps, Hive connector needs fix.

@ebyhr, FYI #15508

@krvikash krvikash force-pushed the fix-npe-in-rollbackToSnapshot-procedure branch from 6ddaa5d to 2aa05ab Compare December 22, 2022 14:32
@ebyhr ebyhr merged commit d33aeb0 into trinodb:master Dec 22, 2022
@github-actions github-actions bot added this to the 404 milestone Dec 22, 2022
@krvikash krvikash deleted the fix-npe-in-rollbackToSnapshot-procedure branch December 23, 2022 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

NPE when invoking Iceberg system.rollback_to_snapshot with NULL
3 participants